import vue from "vue"
import VueRouter from "vue-router"
import  home from "./component/home.vue"
import  menber from "./component/menber.vue"
import  shopcar from "./component/shopcar.vue"
import  search from "./component/search.vue"
import  newslist from "./component/xinwen/newslist.vue"
import  newxiang from "./component/xinwen/newxiang.vue"

vue.use(VueRouter)
var router=new VueRouter({
    routes:[
        {path:"/",redirect:'/home'},
        {path:"/home",component:home},
        {path:"/menber",component:menber},
        {path:"/shopcar",component:shopcar},
        {path:"/search",component:search},
        {path:"/newslist",component:newslist},
        {path:"/newslist/newxiang/:id",component:newxiang}


    ],
    linkActiveClass:"mui-active"
})
export default router